<?php

namespace app\api\validate;
use think\Validate;

/**
 * 案件表
 */
class CasesValidate  extends  Validate
{
    protected $rule = [
        'id' => 'require',
        'type' => 'require|in:1,2',
        'verify_content' => 'require',
        'verify_images' => 'require',
        'verify_money' => 'require',

    ];

    protected $message = [
        'id.require' => '未找到案件',
        'type.require' => '类型错误',
        'type.in' => '类型错误',
        'verify_content.require' => '处罚原因不能为空',
        'verify_images.require' => '图片不能为空',
        'verify_money.require' => '金额不能为空',

    ];
    protected $scene = [
        'save' => ['id','type'],
        'verify' => ['id','verify_content','verify_images'],
        'punish' => ['id','verify_money'],
        'appear' => ['id'],
    ];
}